import { DrawerForm, ProFormInstance } from '@ant-design/pro-form';
import { ActionType } from '@ant-design/pro-table';
import React, { useRef } from 'react';

interface GreenSubmitPreviewProps {
  trigger?: JSX.Element;
  content: string;
  onRefurbish: () => void;
}

const GreenSubmitPreview: React.FC<GreenSubmitPreviewProps> = ({
  trigger,
  content,
  onRefurbish,
}) => {




  const actionRef = useRef<ActionType>();

  const formRef = useRef<ProFormInstance>();

  return (
    <DrawerForm
      key="drawer_form_green_submit_preview"
      title="智能审核"
      drawerProps={{
        maskClosable: false,
        destroyOnClose: true,
      }}
      formRef={formRef}
      trigger={trigger}
      initialValues={{}}
      submitter={false}
      onFinish={async (values) => {}}
      onOpenChange={(visible) => {

        
      }}
    >
      {content}
    </DrawerForm>
  );
};
export default GreenSubmitPreview;
